package com.wyh.mapper.gfivemapper.tree_mapper;



import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wyh.domain.vo.gfive.treeVo.RoomVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface RoomVOMapper extends BaseMapper<RoomVO> {
    @Select("select * from resource where state != -1")
    public List<RoomVO> selectAll();

    @Select("select infoname from resource where id = #{id}")
    String selectInfo(Integer id);

    @Update("update resource set infoname = #{infoname} where id = #{id}")
    void updateByID(String infoname,Integer id);
}
